package com.cfpamf.ms.insur.pay.facade.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotNull;

/**
 * Create By zhengjing on 2019-10-21 16:39
 */
@ConfigurationProperties("insurance-pay")
@Configuration
@Data
public class PayFacadeConfigProperties {
    /**
     * 地址
     */
    @NotNull
    private String url;

    /**
     * 签名key 由支付系统分配
     */
    @NotNull
    private String key;

    /**
     * 业务系统编码
     */
    @NotNull
    private String sourceSys;

    //  frontPayUrl: https://safes.test.cfpamf.com/wx/#/orderPay?orderId=%s
    //  notifyUrl: https://safes.test.cfpamf.com/api/v1/order/insurPay/callback
    //  expiredTime: 300


    /**
     * 前端重定向的地址
     */
    private String frontPayUrl;
    /**
     * 支付结果通知地址
     */
    private String notifyUrl;

    /**
     * 过期时间
     */
    private Integer expiredTime;
}
